package com.zx.web.sys_books.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zx.web.sys_books.entity.BookVo;
import com.zx.web.sys_books.entity.ListParam;
import com.zx.web.sys_books.entity.SysBooks;

import java.util.List;

public interface SysBooksService extends IService<SysBooks> {
    IPage<SysBooks> getList(ListParam param);
    //借书，减库存
    int subBook(Long bookId);
    //还书，加库存
    int addBook(Long bookId);
    //热门图书榜
    List<BookVo> getHotBook();
}
